package corntab;

import org.junit.Test;

import java.text.SimpleDateFormat;

public class TestUT {

    @Test
    public void demo() throws Exception {
        CrontabIterator crontabIterator = new CrontabIterator("30 5 * * *");
        SimpleDateFormat s=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS");
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
        System.out.println(s.format(crontabIterator.next()));
    }
}
